<?php

declare(strict_types=1);

namespace App\Api\Request;

use Mine\MineFormRequest;

class AuthRequest extends MineFormRequest
{
    public function loginRules(): array
    {
        return [
            'code' => 'required|string',
            'avatar' => 'required|string|max:255|url',
            'nickname' => 'required|string|max:50',
        ];
    }

    public function attributes(): array
    {
        return [
            'code' => '登录凭证',
            'avatar' => '用户头像',
            'nickname' => '昵称',
        ];
    }
}
